<?php
namespace App\Api\V1\Controllers;
use App\User;


class UserController extends BaseController
{
    public function show($id)
    {
//        echo app('Dingo\Api\Routing\UrlGenerator')->version('v1')->route('users.index');
//        return "ok 了sss";
        $user = User::findOrFail($id);

        return $this->response->item($user, new UserTransformer)->addMeta('foo', 'bar');
    }
}